<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <meta http-equiv="Cache-Control" content="no-siteapp" />
    <title>后台管理</title>
    <link href="/static/h+/css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="/static/h+/css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="/static/h+/css/animate.min.css" rel="stylesheet">
    <link href="/static/h+/css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <style type="text/css">
        .img-circle{width: 64px;height: 64px;}
        .gbi{width: 30px;height: 30px;cursor: pointer;}
        #one_nav{float: left;}
        .btn_nav{background: #999;color: #eee;}
        .btn_nav:hover{background: #f4a;color: #fff;}
        .btn_nav_avtice{background: #f4a;color: #fff;}
        .nav>.modular{display: none;}
        #counta{color: #00f;}
    </style>
</head>
<body class="fixed-sidebar full-height-layout gray-bg" style="overflow:hidden">
<div id="wrapper">
        <!--左侧导航开始-->
  <nav class="navbar-default navbar-static-side" role="navigation">
    <div class="nav-close"><i class="fa fa-times-circle"></i></div>
    <div class="sidebar-collapse">
      <ul class="nav" id="side-menu">
        <li class="nav-header">
          <div class="dropdown profile-element">
            <span><img class="img-circle" src="{$admin.avatar}" /></span>
            <a data-toggle="dropdown" class="dropdown-toggle" href="#">
              <span class="clear">
                <span class="block m-t-xs"><strong class="font-bold">&nbsp;</strong></span>
                <span class="text-muted text-xs block">{$admin.username}<b class="caret"></b></span>
              </span>
            </a>
            <ul class="dropdown-menu animated fadeInRight m-t-xs">
              <li><a class="J_menuItem" data-url="{:url('edit')}" href="#admin_edit" data-txt="修改资料">修改资料</a></li>
              <li class="divider"></li>
              <li><a href="/71a4d6e847b6214b/login?action=logout">注销</a></li>
            </ul>
          </div>
          <div class="logo-element">H+</div>
        </li>
        {if(!empty($menu))}
        {foreach $menu as $item}
        <li class="modular" modular="modular{$item.modular}">
          <a href="#">
            <i class=""></i>
            <span class="nav-label">{$item.title}</span>
            <span class="fa arrow"></span>
          </a>
          <ul class="nav nav-second-level">
            {if(!empty($item.children))}
            {foreach $item.children as $son_item}
            <li>
              <a class="J_menuItem" data-txt="{$son_item.title}" data-url="{$son_item.url}" href="#{$son_item.identity}" isleft="1">{$son_item.title}</a>
            </li>
            {/foreach}
            {/if}
          </ul>
        </li>
        {/foreach}
        {/if}
      </ul>
    </div>
  </nav>
  <!--左侧导航结束-->
  <!--右侧部分开始-->
  <div id="page-wrapper" class="gray-bg dashbard-1">
    <div class="row border-bottom">
      <nav class="navbar navbar-static-top" role="navigation" style="margin-bottom: 0">
        <div class="navbar-header">
          <a class="navbar-minimalize minimalize-styl-2 btn btn-primary" href="#"><i class="fa fa-bars"></i> </a>
        </div>
        <div id="one_nav">
          {foreach $modular as $k=>$mod}
          <a class="minimalize-styl-2 btn{if($k===0)} btn_nav_avtice{/if}" data-modular="modular{$mod.id}" href="javascript:;">{$mod.title}</a>
          {/foreach}
        </div>
      </nav>
    </div>
    <div class="row content-tabs">
      <button class="roll-nav roll-left J_tabLeft"><i class="fa fa-backward"></i></button>
      <nav class="page-tabs J_menuTabs">
        <div class="page-tabs-content">
          <a href="javascript:;" class="active J_menuTab" data-id="/index_v1">首页</a>
        </div>
      </nav>
      <a href="/71a4d6e847b6214b/login?action=logout" class="roll-nav roll-right J_tabExit"><i class="fa fa fa-sign-out"></i> 注销</a>
    </div>
    <div class="row J_mainContent" id="content-main">
      <iframe class="J_iframe" name="iframe0" width="100%" height="100%" src="{:url('index_v1')}" frameborder="0" data-id="/index_v1" seamless></iframe>
    </div>
    <div class="footer">
      <div class="pull-right">&copy; 2017-2030 <a href="http://www.royhe.cn" target="_blank">网络科技有限公司</a></div>
    </div>
  </div>
  <!--右侧部分结束-->
</div>
</body>
<script type="text/javascript">
    var menu_str = <?php echo $menu_str; ?>;
</script>
<script type="text/javascript" src="/static/h+/js/jquery.min.js?v=2.1.4"></script>
<script type="text/javascript" src="/static/h+/js/bootstrap.min.js?v=3.3.6"></script>
<script type="text/javascript" src="/static/h+/js/plugins/metisMenu/jquery.metisMenu.js"></script>
<script type="text/javascript" src="/static/h+/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<script type="text/javascript" src="/static/h+/js/plugins/layer/layer.min.js"></script>
<script type="text/javascript" src="/static/h+/js/hplus.min.js?v=4.1.0"></script>
<script type="text/javascript" src="/static/h+/js/contabs.min.js"></script>
<script type="text/javascript" src="/static/h+/js/plugins/pace/pace.min.js"></script>
<script type="text/javascript">
    $(function(){
        var mod = window.localStorage.getItem('modular');
        if (mod != null && mod != '') {
            $('#one_nav a').removeClass('btn_nav_avtice');
            $('#one_nav a[data-modular="' + mod + '"]').addClass('btn_nav_avtice');
            $('.modular[modular="' + mod + '"]').css('display', 'block')
        }
        $('#one_nav a').hover(function(){
            $('#one_nav a').removeClass('btn_nav_avtice');
            $(this).addClass('btn_nav_avtice');
        }).click(function(){
            $('#one_nav a').removeClass('btn_nav_avtice');
            $(this).addClass('btn_nav_avtice');
            $('.modular').css('display', 'none');
            var $mod = $(this).data('modular');
            $('.modular[modular="' + $mod + '"]').css('display', 'block')
            window.localStorage.setItem('modular', $mod)
        })
    })
</script>
</html>